﻿using System.ComponentModel.DataAnnotations;

namespace AssetsSys.WebApi.Models.Type
{
    /// <summary>
    /// 添加类型
    /// </summary>
    public class CreateTypeViewModel
    {
        /// <summary>
        /// 资产代号
        /// </summary>
        [Required]
        public int Code { get; set; }
        /// <summary>
        /// 类型名称
        /// </summary>
        [Required]
        public string TypeName { get; set; }
        /// <summary>
        /// 建议使用年限
        /// </summary>
        [Required]
        public int AgeLimit { get; set; }
    }
}